package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.ActivityBean;
import com.cgtong.android.bean.NewsBean;
import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.exception.ApiException;

import java.util.List;

/**
 * Created by Sky.Bing on 2017/10/25.
 */

public interface MyParticipationContract {
    interface View {

        void getMyParticipationActivityError(ApiException e);

        void setRefreshing(boolean isRefresh);

        void setEnableLoadMore(boolean enabled);

        void showParticipationActivityList(boolean isRefresh, List<ActivityBean> activityBeanList);
    }

    interface Model {
        void getMyParticipation(int maxId, int pageSize, SimpleCallBack callBack);
    }

    interface Presenter {
        void getMyParticipation(int maxId, int pageSize);

        void loadMore(int maxId, int pageSize);
    }
}